package longcaisuyun.longcai.com.net;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2016/6/7.
 */
@HttpInlet(Net.BANBENHAO)
public class PostBanBen extends WHAsyPost<PostBanBen.Info> {
    public String  version;

    public PostBanBen(String  version,AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.version=version;
    }

    @Override
    protected Info parser(JSONObject object) {

        Info info=new Info();
        try {
            info.message=object.getString("message");
            info.url=object.getString("url");
            info.web_d=object.getString("web_b");
            return info;
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public static class Info {
        public String message;
        public String web_d;
        public String url;
    }
}
